<template>
<h1>第一个{{info}}页面</h1>
  {{info}}
{{info + '晚上吃什么？'}}
  <p>{{aaa}}</p>
  <button @click="f">点我</button>
  <hr>
<!--  v-text="aaa"是{{aaa}}的简写-->
  <p v-text="aaa"></p>
  <p v-html="aaa"></p>
</template>

<script setup>
import {ref} from "vue";
//1.创建响应式变量
const info = ref('我是info66666')
const aaa = ref('我是aaa')
//2.定义箭头函数
const f = () => {
  console.log('我是f函数');
  console.log(aaa);
  console.log(aaa.value);
  // aaa.value = '我是aaa2222'
  aaa.value = '我是<mark>新</mark>,大家好<b>!!!!</b>'
}

</script>

<style scoped>

</style>